<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{% block title %} {% endblock %}</title>
    <link rel="stylesheet" type="text/css" href="/static/css/index.css"/>
	<link rel="stylesheet" type="text/css" href="/static/css/style.css"/>
	<script src="/static/js/jquery-3.2.1.min.js"></script>
	<script src="/static/js/common.js"></script>
	<script src="/static/js/swiper.js"></script>
</head>
<header>
		<div class="lf">
			<a class="home" href="{% url 'xzbindex' %}">系统首页</a>
			 <a href="{% url 'xzbbbs' %}">论坛</a>
			<a href="{% url 'xzbupload' %}">上传资源</a>
		</div>
		<div id="search">
			<input type="text" name="name"
				placeholder="请输入要搜索的资源" autocomplete="off"/>
			<a class="btn search">搜索</a>
		</div>

		<div class="rf">
<!--			session:{{ request.session.user_name }}-->
			{% if request.session.username %}
			<a>欢迎 {{ request.session.username }}</a>
			{% else %}
			<a href="{% url 'xzblogin' %}">登录/注册</a>
			{% endif %}
			<a class="info" href="{% url 'xzbpersonal' %}">个人中心</a>
			<a class="cols" href="{% url 'xzbshoucang' %}">收藏</a>
			<a class="exit" href="{% url 'xzblogout' %}">退出登录</a>
			<a class="active" href="">中文</a>
			<a href="">Eng</a>
		</div>
	</header>
<body>
    <div>{% block top %} {% endblock %}</div>
    <div>{% block swipter %} {% endblock %}</div>
    <div>{% block main %} {% endblock %}</div>
    <div>{% block bottom %} {% endblock %}</div>

</body>
</html>